package view;

import java.awt.BorderLayout;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class Frame extends JFrame
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private JTabbedPane myTab;
	private List<JPanel> myPanels;
	
	public Frame(){
		this.setTitle("Level Editor");
		setJMenuBar(new MenuBar());
		myPanels = new ArrayList<JPanel>();
		myPanels.add(new InnerPannel());
		myTab = new JTabbedPane();
		myTab.add("Editor", myPanels.get(0));
		myTab.setTabComponentAt(0, new ButtonTabComponent(myTab));
		getContentPane().add(myTab, BorderLayout.CENTER);
		pack();
	}

	

}
